package com.cpit.qualitycontrol.dao;

import com.cpit.qualitycontrol.entity.ProjectOrganization;
import com.cpit.qualitycontrol.entity.ProjectOrganizationPK;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ProjectOrganizationRepository extends JpaRepository<ProjectOrganization, ProjectOrganizationPK> {
    ProjectOrganization save(ProjectOrganization projectOrganization);

    List<ProjectOrganization> findByProjectId(Long projectId);

    List<ProjectOrganization> findByOrganizationId(Integer organizationId);

    void  deleteByProjectId(Long projectId);
}
